home *** CD-ROM | disk | FTP | other *** search
-
-
-
- CCCCHHHHCCCCAAAAPPPP((((1111)))) CCCCHHHHCCCCAAAAPPPP((((1111))))
-
-
-
- NNNNAAAAMMMMEEEE
- chcap - change file capability sets
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- cccchhhhccccaaaapppp [ _c_a_p_s_e_t_s | -r ] _p_a_t_h_n_a_m_e ...
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _c_h_c_a_p changes the effective, permitted, and inheritable capability sets
- of the specified file(s) or removes them. A file's capability sets
- affect the capabilities that are assigned to a process upon execution of
- the file. For a more complete description of the capability mechanism,
- see _cccc_aaaa_pppp_aaaa_bbbb_iiii_llll_iiii_tttt_iiii_eeee_ssss(4).
-
- _cccc_aaaa_pppp_ssss_eeee_tttt_ssss is a string that describes the changes to the file capability
- sets. It is comprised of one or more capability lists. Each capability
- list has the form:
-
- capname[,capname...]OF
-
- where capname is a capability name (e.g., CAP_DAC_READ, CAP_DAC_WRITE,
- CAP_CHOWN, etc.). The capability name ALL indicates all capabilities.
- Capability names may be expressed in either upper or lower case. For a
- complete description of available capability names, see _cccc_aaaa_pppp_aaaa_bbbb_iiii_llll_iiii_tttt_iiii_eeee_ssss(4).
-
- F is a sequence of one or more flags chosen from "e", "i", "p" indicating
- which file capability sets are to be affected. "e" indicates the
- effective capability set, "p" the permitted capability set, and "i" the
- inherited capability set.
-
- O is the operation chosen from "=","+","-", indicating to initialize,
- add, or delete the specified capabilities in the affected capability
- sets.
-
- If multiple capability lists are specified in _cccc_aaaa_pppp_ssss_eeee_tttt_ssss, each capability
- list must be separated by white space, and the entire _cccc_aaaa_pppp_ssss_eeee_tttt_ssss string must
- be escaped from shell interpretation (i.e. enclosed in quotes).
-
- Specifying aaaallllllll==== as a prefix within the _cccc_aaaa_pppp_ssss_eeee_tttt_ssss string clears all current
- capability sets prior to processing the remainder of the string.
-
- The capability sets of a file can be displayed using the _llll_ssss(1) -P option.
-
- The ----rrrr option is used to entirely remove all capability sets on the
- specified files.
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
- cccchhhhccccaaaapppp CCCCAAAAPPPP____DDDDAAAACCCC____WWWWRRRRIIIITTTTEEEE----pppp ffffiiiilllleeee
- Removes CAP_DAC_WRITE from the file's permitted capability set.
-
- cccchhhhccccaaaapppp CCCCAAAAPPPP____DDDDAAAACCCC____WWWWRRRRIIIITTTTEEEE====pppp ffffiiiilllleeee
- Initializes the file's permitted capability set to contain only
- CAP_DAC_WRITE.
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- CCCCHHHHCCCCAAAAPPPP((((1111)))) CCCCHHHHCCCCAAAAPPPP((((1111))))
-
-
-
- cccchhhhccccaaaapppp """"aaaallllllll==== CCCCAAAAPPPP____DDDDAAAACCCC____WWWWRRRRIIIITTTTEEEE====pppp"""" ffffiiiilllleeee
- Clears all of the file's capability sets, and initializes the file's
- permitted capability set to contain only CAP_DAC_WRITE.
-
- cccchhhhccccaaaapppp CCCCAAAAPPPP____CCCCHHHHOOOOWWWWNNNN++++pppp ffffiiiilllleeee
- Adds CAP_CHOWN to the file's permitted capability set.
-
- cccchhhhccccaaaapppp """"CCCCAAAAPPPP____DDDDAAAACCCC____RRRREEEEAAAADDDD++++ppppiiii CCCCAAAAPPPP____DDDDAAAACCCC____WWWWRRRRIIIITTTTEEEE++++pppp"""" ffffiiiilllleeee
- Adds CAP_DAC_READ and CAP_DAC_WRITE to file's the permitted capability
- set, and adds CAP_DAC_READ to the file's inherited capability set.
-
- cccchhhhccccaaaapppp ----rrrr ffffiiiilllleeee
- Removes the capability sets on the file.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- capabilities(4), capability(4), ls(1).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-